<?php

    class xinxiModel extends Model{
        public function selectxinxiequipment(){
            $sql = "select * from accouter";
            return $this->link->selectByAll($sql);
        }

        public function selectxinxihero(){
            $sql = "select * from hero";
            return $this->link->selectByAll($sql);
        }

        public function selectxinxiherosearch($xinxi_hero_search){
            $sql = "select * from hero where `id` like '%{$xinxi_hero_search}%' or `name` like '%{$xinxi_hero_search}%' or `big_name` like '%{$xinxi_hero_search}%'";
            return $this->link->selectByAll($sql);
        }

        public function selectxinxispells(){
            $sql = "select * from summoner_spells";
            return $this->link->selectByAll($sql);
        }
    }#